
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
     <link rel="stylesheet" type="text/css" href="css/register.css">
	<!-- 使用Font Awesome图标 -->
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <a href="index.html" class="navbar-logo">
            <img src="img/x1.jpg" height="50px" width="200px">
        </a>
        <div class="nav-links">
            <a href="register.html" class="active">注册</a>
            <a href="index.html">登录</a>
        </div>
    </nav>
    
    <!-- 主体内容 -->
    <div class="main-content">
        <div id="particles-js"></div>
        <div class="auth-container">
            <div class="auth-header">
                <h2>注册新账户</h2>
                <p>加入我们的学习平台，开启知识之旅</p>
            </div>
            <form id="registerForm">
                <div class="input-group">
                    <input type="text" id="reg-username" required autocomplete="off">
                    <label for="reg-username">用户名</label>
                </div>
                <div class="input-group">
                    <input type="email" id="reg-email" required>
                    <label for="reg-email">电子邮箱</label>
                </div>
                <div class="input-group">
                    <input type="password" id="reg-password" required>
                    <label for="reg-password">密码</label>
                    <div class="password-strength"></div>
                </div>
                <div class="input-group">
                    <input type="password" id="reg-confirm-password" required>
                    <label for="reg-confirm-password">确认密码</label>
                </div>
                <div class="terms-agree">
                    <input type="checkbox" id="agree-terms" required>
                    <label for="agree-terms">我已阅读并同意<a href="#">服务条款</a>和<a href="#">隐私政策</a></label>
                </div>
                <button type="submit" class="auth-btn">注 册</button>
                <div class="auth-switch">
                    已有账号? <a href="index.html">立即登录</a>
                </div>
            </form>
        </div>
    </div>

    <!-- 成功提示框 -->
    <div class="alert-success" id="successAlert">
        注册成功！3秒后跳转到登录页面...
    </div>

    <script src="js/register.js">

    </script>
</body>
</html>
